package com.gqz.equip.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.equip.app.entity.EnWzKfglEntity;
import com.gqz.equip.vo.EnWzKfglVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @ClassName EnWzKfglMapstruct
 * @Description 库房信息表
 * @Date 2022-11-11 15:03:10
 * @Version 1.0
 * @Author input you name
 */
@Mapper(componentModel = "spring", imports = {})
@Component
public interface EnWzKfglMapstruct {

    EnWzKfglVo toVo(EnWzKfglEntity entity);

    List<EnWzKfglVo> toVos(List<EnWzKfglEntity> entity);

    @Mapping(target = "optimizeJoinOfCountSql", ignore = true)
    Page<EnWzKfglVo> toVos(Page<EnWzKfglEntity> entity);

    @Mapping(target = "statusname", ignore = true)
    EnWzKfglEntity toEntity(EnWzKfglVo vo);

    List<EnWzKfglEntity> toEntitys(List<EnWzKfglVo> vos);


}
